<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{$system.web_name}</title>
	<meta name="keywords" content="{$system.keywords}">
	<meta name="description" content="{$system.describe}">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<link rel="stylesheet" href="/home/css/base.css">
	<link rel="stylesheet" type="text/css" href="/home/css/swiper.min.css"/>
	<link rel="stylesheet" href="/home/css/dian.css">
	<script src="/home/js/jquery.min.js"></script>
	<script src="/home/js/swiper.min.js"></script>
</head>
<body>
	<div class="dian-content o_hidden">
		<div class="dc-top o_hidden">
			<img src="/home/img/hn_03.jpg" alt="" class="dc-img">
			<img src="/home/img/hnb_03.jpg" alt="" class="dc-img1">
		</div>
		<div class="ac-bottom o_hidden">
			<div><a href="/index/login.html">一键返回</a></div>
			{volist name="list" id="l" empty="未找到用户信息"}
			<div class="ksearch-txt">
				<div class="ks-list">
					<img src="/home/img/x_03.png" alt="">
					<div class="ks-pic">
						<img src="{:$l.img!=''?$l.img:'/home/img/x_03.png'}" alt="" style="width:100%;height:100%;">
					</div>
					<div class="ksp-bottom">
						<ul class="o_hidden">
							<li>
								<p class="ksp-p">姓名<span>{$l.name}</span></p>
							</li>
							<li>
								<p class="ksp-p">年龄<span>{$l.age}岁</span></p>
							</li>
							<li>
								<p>等级&nbsp;
									<span>
									{if condition="!empty($l.cards)"}
									<select class="student-card">
										{volist name="l.cards" id="c"}
										{if condition="($c.score neq '') && ((time()-7*24*60) gt $c.score_time)"}
										<option data-score="{$c.score}">{$c.name}&nbsp;&nbsp;&nbsp;{:date('Y.m',$c.time)}</option>
										{/if}
										{/volist}
									</select>
									{else /}
									无
									{/if}
									</span>
								</p>
							</li>
							<li>
								<p>身份证号&nbsp;<span>{:$l.idcard}</span></p>
							</li>
						</ul>
					</div>
				</div>
				<!-- 分为优良，优秀，及格，良好-->
				{if condition="!empty($l.cards)"}
				<div class="ksp-img">					
					<img src="/home/img/ks_03_1.png" alt="">
					<p class="ksp-pp">未通过</p>
				</div>
				{/if}
				<!-- end -->
			</div>
			{/volist}
		</div>
	</div>
	<script>
		$(".student-card").change(function(){
			var score=$(this).find("option:selected").attr("data-score");
			//alert(score)
			$(".ksp-img p").html(score);
			if(score!='不及格'){
				$(".ksp-img img").attr('src','/home/img/ks_03.png');
			}else{
				$(".ksp-img img").attr('src','/home/img/ks_03_1.png');
			}
		})
		
		$(function(){
			$(".student-card").change();
		})
	</script>
</body>
</html>